package com.example.motion.controller;

import com.example.motion.model.User;
import com.example.motion.service.MotionTermService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 活动期限
 *
 * @author jxf
 * @version 1.0.0
 * @since 1.0.0
 */
@RestController
public class MotionTermController {

    @Autowired
    private MotionTermService motionTermService;

    @RequestMapping(value = "/personList", method = RequestMethod.POST)
    public List<User> MotionTerm() {
        List<User> list = motionTermService.personList();
        return list;
    }
}
